//
//  ToolChooseViewController.h
//  ToolChooseViewController
//
//  Created by linziyuan on 16/5/20.
//  Copyright © 2016年 creative. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum: NSInteger{
    ToolChoose_none = 0,
    ToolChoose_color,
    ToolChoose_line,
    ToolChoose_pen,
}ToolChooseType;

//当currentType为line
extern NSString * const LineChoose_thin;
extern NSString * const LineChoose_normal;
extern NSString * const LineChoose_bold;
//currentType为pen
extern NSString * const PenChoose_thin;
extern NSString * const PenChoose_bold;

@class ToolChooseViewController;
typedef void (^ToolChooseClickBlock) (ToolChooseViewController *toolVC,NSInteger index);
typedef void (^ToolTapEmptyBlock) (ToolChooseViewController *toolVC);
@interface ToolChooseViewController : UIViewController

@property (nonatomic, assign)ToolChooseType currentType;//记录chooseType
//通传参数
@property (nonatomic, strong) UIView *followView;
//ToolChoose_color
@property (nonatomic, strong) NSArray <UIColor*> *ShowColors;
@property (nonatomic, assign) NSInteger defualtIndex;
@property (nonatomic, strong) UIColor *currentColor;
//ToolChoose_line
@property (nonatomic, strong) NSArray <NSString*> *showLines;
@property (nonatomic, assign) NSString *lineType;
@property (nonatomic, strong) UIImage *currentLineImg;
//ToolChoose_pen
@property (nonatomic, strong) NSArray <NSString*> *showPens;
@property (nonatomic, assign) NSString *penType;
@property (nonatomic, strong) UIImage *currentPenImg;

- (void)ToolChooseShow:(ToolChooseType)type fromVC:(UIViewController*)vc clickBlock:(ToolChooseClickBlock)toolClikBlock tapEmptyBlock:(ToolTapEmptyBlock)tapEmptyBlock;
- (void)close;
//
+ (NSString *)tcNormalImgForType:(NSString *)type; //通过type获得normalImg string
+ (NSString *)tcHeightlightImgForType:(NSString *)type; //通过type获得heightlightImg string
@end
